package com.nameless.controller;

import com.nameless.service.CarCommentService;
import com.nameless.vo.CarCommentVo;
import com.nameless.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author keluoyisi
 * @program: car-parent
 * @description: 车辆评论
 * @date 2023-02-27 20:11:56
 */
@RestController
@RequestMapping("/car/carComment")
public class CarCommentController {
    @Autowired
    private CarCommentService carCommentService;

    @RequestMapping("/queryAllByParam")
    public Result queryAllByParam(@RequestBody CarCommentVo carCommentVo){
        return carCommentService.queryAllByParam(carCommentVo);
    }

    @DeleteMapping("/deleteById")
    public Result deleteById(Integer id){
        return carCommentService.deleteById(id);
    }
}
